package com.usian.apis.behavior;

import com.usian.model.behavior.behavior.pojos.ApBehaviorEntry;

public interface ApBehaviorEntryControllerApi {

    /**
     * 查询行为实体
     * @param userId
     * @param equipmentId
     * @return
     */
    ApBehaviorEntry findByUserIdOrEquipmentId(Integer userId, Integer equipmentId);
    /**
     * 根据行为实体id和文章id查询点赞行为
     * @return
     */
    ApBehaviorEntry findLikeByArticleIdAndEntryId(Long articleId, Integer entryId, Short type);
}
